package it.avantsoft.ls.peer.command;

import it.avantsoft.ls.peer.PeerHandler;

public class NewChildCommand extends PeerCommand {
    private String childId;

    public NewChildCommand(PeerHandler peerHandler, String childId) {
        super(peerHandler);
        this.childId = childId;
    }

    public void execute() {
        getPeer().addChild(childId);
    }

    public String toString() {
        return "NewChildCommand{" +
                "childId='" + childId + '\'' +
                '}';
    }
}
